﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhonTai.Admin.Core.Dto;
using ZhonTai.Industry.Services.FormulaDetail.Dto.Input;
using ZhonTai.Industry.Services.FormulaDetail.Dto.Output;

namespace ZhonTai.Industry.Services.FormulaDetail
{
    /// <summary>
    /// 配方详情服务
    /// </summary>
    public interface IFormulaDetatilService
    {
        /// <summary>
        /// 查询
        /// </summary>
        Task<FormulaDetailGetOutput> GetAsync(long id);

        /// <summary>
        /// 分页查询
        /// </summary>
        Task<PageOutput<FormulaDetailGetPageOutput>> GetPageAsync(PageInput<FormulaDetailGetPageInput> input);

        /// <summary>
        /// 列表查询
        /// </summary>
        Task<IEnumerable<FormulaDetailGetListOutput>> GetListAsync(FormulaDetailGetListInput input);

        /// <summary>
        /// 新增
        /// </summary>
        Task<long> AddAsync(FormulaDetailAddInput input);

        /// <summary>
        /// 编辑
        /// </summary>
        Task UpdateAsync(FormulaDetailUpdateInput input);

        /// <summary>
        /// 删除
        /// </summary>
        Task<bool> DeleteAsync(long id);

        /// <summary>
        /// 软删除
        /// </summary>
        Task<bool> SoftDeleteAsync(long id);

        /// <summary>
        /// 批量软删除
        /// </summary>
        Task<bool> BatchSoftDeleteAsync(long[] ids);
    }
}